package com.carpedil.smvc.service.impl;

import com.carpedil.smvc.dao.DeptMapper;
import com.carpedil.smvc.po.Dept;
import com.carpedil.smvc.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/** @author Administrator */
@Service
public class DeptServiceImpl implements DeptService {
  @Autowired DeptMapper deptMapper;

  @Override
  @Transactional
  public Dept findDeptById(Integer id) {
    return deptMapper.findDeptById(id);
  }
}
